home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
64'er Special 25
/
64er_Magazin_Sonderheft_25_19xx_Markt__Technik_de.d64
/
floppy-bag 801
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
12KB
|
361 lines
100 rem********************************
102 rem* diskhuellen mps 801 *
104 rem********************************
106 rem* ein programm zur herstellung *
108 rem* neuer diskettentaschen und *
110 rem* aufklebe-etiketten *
112 rem********************************
124 rem* johann gubesch *
126 rem* hengteweg 12 *
128 rem* 4420 coesfeld *
130 rem* 02541/81472 *
132 rem********************************
134 gosub 160
136 gosub 190
138 if y=1 then gosub 500:gosub 530:gosub 796
140 dim db$(144):ax$=" " :dim na$(144):xy=0
142 gosub 254
144 if y=2 then gosub 344:gosub 428:gosub 500:gosub 578:gosub 796
146 if y=3 then gosub 344:gosub 428:gosub 500:gosub 578:xy=1
148 if y=3 then gosub 254:gosub 344
150 if y=3 then gosub 428:gosub 500:gosub 726:gosub 796
152 if y=4 then gosub 344:gosub 428:gosub 500:gosub 726:gosub 796
154 if y=5 then gosub 344:gosub 500:gosub 672:gosub 796
156 end
158 rem ---- modul rahmen -------------
160 poke53281,1:poke53280,1:printchr$(142)
162 print"[147] ** floppy-bag 801 ** ";
164 print" fuer mps 801 und kompatible ";
166 print" von j.gubesch, coesfeld, februar 1987 [146]"
168 poke 646,0:print"[145]";
170 for a=1to16
172 print"[221] [221]";
174 next
176 print"[171][192][192][192][192][192][192][192][192][192][192][192][178][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][178][192][192][178][192][192][192][192][192][192][179]";
178 print"[221] [221] [221] [221] [221]";
180 print"[171][192][192][192][192][192][192][192][192][192][192][192][177][178][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][177][192][178][177][192][192][192][192][192][192][179]";
182 print"[221] [221] [221] [221]";
184 print"[173][192][192][192][192][192][192][192][192][192][192][192][192][177][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][177][192][192][192][192][192][192][192][189][145][145][145][145][145][145][145][145][145][145][145][145][145][145][145][145][145][145][145][145][145][145]"
186 return
188 rem ---- modul auswahlmenue -------
190 print:print
192 print "[145][145][145][145] [146]"
194 print "[145] waehlen sie bitte den ge - "
196 print " wuenschten ausdruck "
198 print "[145] [146]( 1-5 ) "
200 print " "
202 print"[145][145]"
204 print"1[146]- tasche"
206 print"[145]2[146]- tasche mit aufgedrucktem di-"
208 print" rectory + etikett"
210 print"[145]3[146]- tasche mit aufgedrucktem di-"
212 print" rectory + directory fuer die "
214 print"[145] rueckseite + 2 etiketten"
216 print"4[146]- directory + etikett"
218 print"[145]5[146]- etikett"
220 getan$:ifan$=""then 220
222 if an$="1" then y=1:gosub 238:goto 234
224 if an$="2" then y=2:gosub 238:goto 234
226 if an$="3" then y=3:gosub 238:goto 234
228 if an$="4" then y=4:gosub 238:goto 234
230 if an$="5" then y=5:gosub 238:goto 234
232 goto 220
234 return
236 rem ---- modul bedienerfeld frei --
238 print""
240 print""
242 for t= 1to 7
244 print" "
246 print"[145] "
248 next
250 print" "
252 return
254 rem ---- modul directory lesen ----
256 print"" :aw$=" "
258 print"";aw$
260 print"[145]";aw$
262 print"";aw$
264 print"[145]";aw$
266 print"";aw$
268 print"[145][145][145][145][145] einen moment bitte -"
270 print""
272 print"[145] ich lese das directory ein !"
274 if xy=1 then gosub 320:goto 256
276 i=0:gb=1:close 15:open 15,8,15:close 1:open 1,8,0,"$0"
278 input#15,t,k$,o,o:if t<>0 then print"[145][145][145]floppyfehler:[146]";
280 if t<>0 then print" ";k$:print"[146]floppy ein - disk rein "
282 if t<>0 then print "[145] [146]taste druecken "
284 if t<>0 then poke 198,0:wait 198,1:run 134
286 get#1,da$,de$
288 get#1,da$,de$:db$(i+1)="":get#1,da$,de$
290 c=0
292 if da$<>"" then c=asc(da$)
294 if de$<>"" then c=c+asc(de$)*256
296 fr$=mid$(str$(c),2)
298 get#1,de$:if de$="" then za=i:goto 316
300 if de$<>chr$(34) then 298
302 get#1,de$:if de$<>chr$(34) then db$(i)=db$(i)+de$:goto 302
304 get#1,de$:if de$=chr$(32) then 304
306 dc$=""
308 dc$=dc$+de$:get#1,de$:if de$<>"" then 308
310 if gb=1 then id$=left$(dc$,2):gb=0
312 db$(i)=left$(db$(i)+ax$,17)
314 i=i+1:goto 288
316 close 1:close 15
318 return
320 print"" :aw$=" "
322 print"";aw$
324 print"[145]";aw$
326 print"";aw$
328 print"[145]";aw$
330 print"";aw$
332 print"[145][145][145][145][145]bitte diskette wenden "
334 print""
336 print"[145] [146] taste "
338 poke 198,0:wait 198,1:xy=0
340 return
342 rem ---- modul dateneingabe -------
344 print"" :aw$=" "
346 print"";aw$
348 print"[145]";aw$
350 print"";aw$
352 print"[145]";aw$
354 print"";aw$
356 print"[145][145][145][145][145] bitte geben sie folgende"
358 print" daten ein bzw. uebernehmen mit"
360 print"[145] [146]return"
362 co$=" 64 ":mo$=" 64":fl$="1541":nr$="...."
364 poke19,1:input"datum :[146] tt.mm.jjjj[157][157][157][157][157][157][157][157][157][157]";te$:poke19,0
366 te$=left$(te$,10)
368 he$=left$(db$(0),16)
370 print"[145]disk-name :[146] ";he$:poke19,1:input"[157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157]";he$
372 poke19,0
374 he$=left$(he$,16)
376 print "disk-nummer:[146] ";nr$;:poke19,1:input"[157][157][157][157]";nr$
378 poke19,0
380 nr$=left$(nr$,4 )
382 print "[145]disk-id :[146] ";id$;:poke19,1:input"[157][157]";id$
384 poke19,0
386 id$=left$(id$,2 )
388 print "floppy :[146] ";fl$;:poke19,1:input"[157][157][157][157]";fl$
390 poke19,0
392 fl$=left$(fl$,4)
394 print "[145]commodore :[146] ";co$;:poke19,1:input"[157][157][157][157]";co$
396 poke19,0
398 co$=left$(co$,4)
400 print "modus :[146] ";mo$;:poke19,1:input"[157][157][157]";mo$
402 poke19,0
404 mo$=left$(mo$,3)
406 print "stimmen alle angaben ? (j/n)"
408 getan$:if an$="" then 408
410 if an$="j" then 418
412 if an$="n" then print:print"[145][145][145][145] "
414 ifan$="n" then print"[145][145][145][145][145][145][145][145][145][145][145][145]";:goto 364
416 goto 408
418 print"";te$;"";he$;"";id$;"";nr$;"floppy ";fl$;"";
420 print" commodore ";co$;"";mo$;"'"
422 gosub 238
424 return
426 rem ---- modul files bearbeiten ---
428 print"" :aw$=" "
430 print"";aw$
432 print"[145]";aw$
434 print"";aw$
436 print"[145]";aw$
438 print"";aw$
440 print "[145][145][145][145][145][145][145]f1- filename aendern"
442 print"f3- filename streichen"
444 print"[145]f5- filename uebernehmen"
446 print"f7- trennung einfuegen"
448 print"[145] "
450 x1=1:x=0:t=x
452 if za>39 then za = 39
454 for t=0 to za-2
456 print"";x;" ";left$(db$(x+x1),17);"[157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][157][145][145][145][145]"
458 getan$:if an$="" then 458
460 if an$="[135]" then na$(x)=left$(db$(x+x1),17):goto 484
462 if an$="[134]" then x=x-1:x1=x1+1
464 if an$="[134]" and x<0 then x=-1
466 if an$="[134]" then 484
468 if an$="[133]" then print"neuer name:[146] .";:poke19,1
470 if an$="[133]" then input"[157]";na$(x):poke19,0:na$(x)=left$(na$(x) ,17)
472 if an$="[133]" then print "[145][145] "
474 if an$="[133]" then print"[145][145][145][145][145][145]";:goto 484
476 if an$="[136]" then na$(x)="================ "
478 if an$="[136]" then x1=x1-1:t=t-1
480 if an$="[136]" then goto 484
482 goto 458
484 x=x+1:if x=38 then t=za-2
486 next
488 print " keine files mehr vorhanden"
490 for t=xto38:na$(t)="[164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164] ":next
492 poke 198,0:wait 198,1
494 gosub 238
496 return
498 rem ---- modul druckvorbereitung --
500 print"" :aw$=" "
502 print"";aw$
504 print"[145]";aw$
506 print"";aw$
508 print"[145]";aw$
510 print"";aw$
512 print"[145][145][145][145][145][145][145]drucker eingeschaltet und"
514 print"papier richtig eingespannt ?"
516 print"[145](j/n)"
518 getan$:if an$="" then 518
520 if an$="j" then 524
522 goto 518
524 gosub 238
526 return
528 rem ---- modul dr huelle ----------
530 print"" :aw$=" "
532 print"";aw$
534 print"[145]";aw$
536 print"";aw$
538 print"[145]";aw$
540 print"";aw$
542 print"[145][145][145][145][145]auf geht's -"
544 print""
546 print"[145]jetzt wird gedruckt !"
548 print"disketten-tasche"
550 open4,4
552 print#4,"[213]----------------------------------------------------------------[201]"
554 for t=1to22
556 print#4,"[165] : : [167]"
558 next
560 print#4,"[202]----[201]......................................................[213]----[203]"
562 for t=1to28
564 print#4," [221] [221]"
566 next
568 print#4," [202]------------------------------------------------------[203]"
570 close 4
572 gosub 238
574 return
576 rem ---- modul dr huelle+dir+eti --
578 print"":aw$=" "
580 print"";aw$
582 print"[145]";aw$
584 print"";aw$
586 print"[145]";aw$
588 print"";aw$
590 print"[145][145][145][145][145]auf geht's -"
592 print""
594 print"[145]jetzt wird gedruckt !"
596 print"disketten-tasche mit aufgedrucktem"
598 print"directory und aufklebeetikett"
600 close 1:open 1,4
602 print#1,chr$(145)
604 print#1,"[213]----------------------------------------------------------------[201]
606 [152]1,"fn : : then"
608 [152]1,"fn : "[199](14);he$;[199](15);
610 [152]1," disk-nr:";[199](14);nr$;[199](15);" : then"
612 [152]1,"fn : ";:[129] i[178]1 [164] 52:[152]1,"len";:[130]:[152]1," : then"
614 [152]1,"fn : "na$(0);" ";na$(13);" ";na$(26); ": then"
616 [152]1,"fn : "na$(1);" ";na$(14);" ";na$(27); ": then"
618 [152]1,"fn : "na$(2);" ";na$(15);" ";na$(28); ": then"
620 [152]1,"fn : "na$(3);" ";na$(16);" ";na$(29); ": then"
622 [152]1,"fn : "na$(4);" ";na$(17);" ";na$(30); ": then"
624 [152]1,"fn : "na$(5);" ";na$(18);" ";na$(31); ": then"
626 [152]1,"fn : "na$(6);" ";na$(19);" ";na$(32); ": then"
628 [152]1,"fn : "na$(7);" ";na$(20);" ";na$(33); ": then"
630 [152]1,"fn : "na$(8);" ";na$(21);" ";na$(34); ": then"
632 [152]1,"fn : "na$(9);" ";na$(22);" ";na$(35); ": then"
634 [152]1,"fn : "na$(10);" ";na$(23);" ";na$(36); ": then"
636 [152]1,"fn : "na$(11);" ";na$(24);" ";na$(37); ": then"
638 [152]1,"fn : "na$(12);" ";na$(25);" ";na$(38); ": then"
640 [152]1,"fn : ";:[129] i[178]1 [164] 52:[152]1,"len";:[130]:[152]1," : then"
642 fr$[178][200](fr$[170]" ",3)
644 [152]1,"fn : stand:"te$" "fr$" blocks free : then"
646 [152]1,"fn : : then
648 print#1,"[165] : : [167]
650 [152]1,"fn : : then
652 print#1,"[165] : : [167]
654 [152]1,"mid$----right$......................................................(NULL)----(NULL)
656 for t=1to28
658 print#1," [221] [221]"
660 next
662 print#1," [202]------------------------------------------------------[203]"
664 printchr$(10)chr$(10)chr$(10)
666 gosub 696:
668 return
670 rem ---- modul dr etikett ---------
672 print"":aw$=" "
674 print"";aw$
676 print"[145]";aw$
678 print"";aw$
680 print"[145]";aw$
682 print"";aw$
684 print"[145][145][145][145][145]auf geht's -"
686 print""
688 print"[145]jetzt wird gedruckt !"
690 print"disketten-etikett"
692 close 1:open 1,4
694 print#1,chr$(145)
696 print#1,chr$(15)"[213][192][192][192][192][192][192][192][192][178][192][192][192][192][192][192][178][192][192][201]"chr$(8)
698 ifnr$=""thennr$=" "
700 print#1,chr$(15)"[221]"chr$(14)nr$chr$(15)"[221] [221]"id$"[221]"chr$(8)
702 print#1,chr$(15)"[171][192][192][192][192][192][192][192][192][177][192][192][192][192][192][192][177][192][192][179]"chr$(8)
704 print#1,chr$(15)"[221] "he$" [221]"chr$(8)
706 print#1,chr$(15)"[171][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][179]"chr$(8)
708 co$="[195]ommodore "+co$
710 print#1,chr$(15)"[221] "chr$(17)co$chr$(15)" [221]"chr$(8)
712 print#1,chr$(15)"[171][192][192][192][192][178][192][192][192][192][192][192][192][192][192][192][192][192][192][179]"chr$(8)
714 mo$=mo$+"'er [205]odus"
716 print#1,chr$(15)"[221]"fl$"[221]"chr$(17)mo$" [221]"chr$(8)
718 print#1,chr$(15)"[202][192][192][192][192][177][192][192][192][192][192][192][192][192][192][192][192][192][192][203]"chr$(15)
720 gosub 238
722 return
724 rem ---- modul dr dir+et ----------
726 print"":aw$=" "
728 print"";aw$
730 print"[145]";aw$
732 print"";aw$
734 print"[145]";aw$
736 print"";aw$
738 print"[145][145][145][145][145]auf geht's -"
740 print""
742 print"[145]jetzt wird gedruckt !"
744 print"directory + aufklebeetikett"
746 close 1:open 1,4
748 print#1,chr$(145)
750 print#1," "chr$(14);he$;chr$(15);" disk-nr:";chr$(14);nr$;chr$(15)
752 print#1," ";:for i=1 to 52:print#1,"[195]";:next:print#1
754 print#1," "na$(0);" ";na$(13);" ";na$(26)
756 print#1," "na$(1);" ";na$(14);" ";na$(27)
758 print#1," "na$(2);" ";na$(15);" ";na$(28)
760 print#1," "na$(3);" ";na$(16);" ";na$(29)
762 print#1," "na$(4);" ";na$(17);" ";na$(30)
764 print#1," "na$(5);" ";na$(18);" ";na$(31)
766 print#1," "na$(6);" ";na$(19);" ";na$(32)
768 print#1," "na$(7);" ";na$(20);" ";na$(33)
770 print#1," "na$(8);" ";na$(21);" ";na$(34)
772 print#1," "na$(9);" ";na$(22);" ";na$(35)
774 print#1," "na$(10);" ";na$(23);" ";na$(36)
776 print#1," "na$(11);" ";na$(24);" ";na$(37)
778 print#1," "na$(12);" ";na$(25);" ";na$(38)
780 print#1," ";:for i=1 to 52:print#1,"[195]";:next:print#1
782 print#1," stand:"te$" ";fr$;" blocks free"
784 print#1:print#1:close 1
786 close 1:open 1,4
788 print#1,chr$(145)
790 gosub 696
792 return
794 rem ---- modul nochmal ------------
796 print"":aw$=" "
798 print"";aw$
800 print"[145]";aw$
802 print"";aw$
804 print"[145]";aw$
806 print"";aw$
808 print"[145][145][145][145][145]wollen sie noch mehr drucken ?"
810 print""
812 print"[145](j/n)"
814 getan$:if an$="" then 814
816 if an$="j" then run 134
818 if an$="n" then print"hoffentlich sind die ausdrucke"
820 if an$="n" then print"zu ihrer zufriedenheit aus-"
822 if an$="n" then print"ausgefallen !!"
824 if an$="n" then print"[145]tschuess - "
826 if an$="n" then print"bis bald !!"
828 if an$="n" then poke198,0:wait198,1:print"[147]":return